#kubectl apply -f nacos-service.yaml
kubectl apply -f metrics-server.yaml
kubectl apply -f redis-service.yaml
kubectl apply -f ticket-user-service.yaml
kubectl apply -f ticket-auth-service.yaml
kubectl apply -f ticket-gateway-service.yaml
kubectl apply -f ticket-film-service.yaml
kubectl apply -f ticket-cinema-service.yaml
kubectl apply -f ticket-order-service.yaml
kubectl apply -f ticket-web-service.yaml
kubectl apply -f skywalking-oap.yaml
kubectl apply -f skywalking-ui.yaml

# autoscale
kubectl autoscale deployment ticket-cinema-deploy -n ase-ns-09 --cpu-percent=50 --min=2 --max=10
kubectl autoscale deployment ticket-film-deploy -n ase-ns-09 --cpu-percent=50 --min=2 --max=10
kubectl autoscale deployment ticket-user-deploy -n ase-ns-09 --cpu-percent=50 --min=2 --max=10
kubectl autoscale deployment ticket-order-deploy -n ase-ns-09 --cpu-percent=50 --min=2 --max=10
kubectl autoscale deployment ticket-gateway-deploy -n ase-ns-09 --cpu-percent=50 --min=2 --max=5
kubectl autoscale deployment ticket-auth-deploy -n ase-ns-09 --cpu-percent=50 --min=2 --max=5
kubectl autoscale deployment ticket-web-deploy -n ase-ns-09 --cpu-percent=50 --min=2 --max=5
#kubectl autoscale deployment redis-deploy -n ase-ns-09 --cpu-percent=50 --min=2 --max=5


